<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" />
    <meta name="format-detection" content="telephone=no"/>
    <title>开奖公告</title>
    <link type="text/css" rel="stylesheet" href="{{ URL::asset('css/css.css')}}" />
    <script src="{{ URL::asset('js/jquery-3.2.0.min.js') }}"></script>
    <script src="{{ URL::asset('js/cal.js') }}"></script>
</head>
<body>
<div id="SHlottery">
    <div class="CPhead"><img src="{{URL::asset('img/CPtitile.jpg')}}" width="100%"/> <span>开奖公告</span></div>
    <div class="Lcontent">
        <style type="text/css">
            .bobao{
                background-image:url("http://pic.gooooal.com/wap/shtc/images/tc_all_bgblue.gif");
                background-repeat: no;
            }
        </style>
        <script type="text/javascript">

        </script>
        <div>
            <div class="Lcontent">
                <div>
                    @yield('content')
                </div>
            </div>

        </div>
        <div class="clear"></div>
    </div>
</div>

<script type="text/javascript">
    var baseUrl = location.pathname;
   function selectLot(value,tag) {
       window.location.href = baseUrl  +  '?tag='+tag + '&d='+value;
   }
   function calOk(dt) {
       var tag = getQueryString('tag') ;
       window.location =baseUrl + '?tag='+ tag + '&d='+dt.replace(/\-/g,"");
   }

    function getQueryString(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
        var r = window.location.search.substr(1).match(reg);
        if (r != null) return unescape(r[2]);
        return null;
    }

    function parseQueryString(url){
        var obj = {};
        var start = url.indexOf("?")+1;
        var str = url.substr(start);
        var arr = str.split("&");
        for(var i = 0 ;i < arr.length;i++){
            var arr2 = arr[i].split("=");
            obj[arr2[0]] = arr2[1];
        }
        return obj;
    }

    $(function () {
        $('.unTitle a').each(function () {
            var href = $(this).attr('href') ;
            var params = parseQueryString(href) ;
            var tag = getQueryString('tag');
            console.log('params',params) ;
            console.log('tag',tag) ;
            if(params.tag && params.tag == tag ){
                $(this).parent().addClass('inTitle').removeClass('unTitle') ;
            }
        })
    })
</script>


</body>
</html>
